package com.cocotingo.snail.template.models;

public class Attribute {

	private final String name;
	private String value;
	
	public Attribute(String name) {
		if (!IDNode.isValidID(name)) {
			throw new IllegalArgumentException("invalid attribute name: " + name);
		}
		this.name = name;
	}
	
	public String getName() {
		return name;
	}
	
	public String getValue() {
		return value;
	}
	
	public void setValue(String value) {
		this.value = value;
	}
	
}
